'use strict';

const Service = require('egg').Service;
class UtilService extends Service {

    /**
   * 分页
   */
  async paging(paging,count) {
    let totalPages = parseInt(count/paging.perPage)
    if(count%paging.perPage>0){
        totalPages = totalPages + 1
    }
    return totalPages
  }

    /**
   * 方案
   */
  async plan(paging) {
    const { app } = this;
  
}
}

module.exports = UtilService;
